package org.particlethink.entry;

public enum DeliverStatus implements IntEnum {
    UnChecked(1),//待验收
    UnConfirmed(2),//待确认
    Warehoused(3),//已入库
    Reconciled(4),//已对账
    Objection(5),//供应商异议
    Discard(6);//已作废

    private final int code;

    DeliverStatus(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public String toString() {
        switch (this) {
            case UnChecked:
                return "待验收";
            case UnConfirmed:
                return "待确认";
            case Warehoused:
                return "已入库";
            case Reconciled:
                return "已对账";
            case Objection:
                return "供应商异议";
            case Discard:
                return "已作废";
            default:
                return "";
        }
    }
}

